/*
 * Serializer.java
 *
 * Created on June 8, 2005, 9:54 PM
 *
 * (C) R. Alexander Milowski alex@milowski.com
 */

package org.infoset.xml.util;

import java.net.*;
import org.infoset.xml.*;

/**
 *
 * @author R. Alexander Milowski
 */
public interface Serializer
{
   void startDocument()
      throws XMLException;
   void endDocument()
      throws XMLException;
   void xmlDeclaration(String version,String encoding,String standalone)
      throws XMLException;
   void startElement(String prefix,Name name)
      throws XMLException;
   void attribute(String prefix,Name name,String value)
      throws XMLException;
   void endStartElement(Name name)
      throws XMLException;
   void namespaceDeclaration(String prefix,URI namespace)
      throws XMLException;
   void endElement(String prefix,Name name)
      throws XMLException;
   void characters(String value,boolean cdataSection)
      throws XMLException;
   void processingInstruction(Name target,String data)
      throws XMLException;
   void comment(String data)
      throws XMLException;
   void setUseCharacterReferences(boolean flag);
   
   void start()
      throws XMLException;
   
   void end()
      throws XMLException;
   
}
